DataSource for Entity Framework in WPF
C1.LiveLinq.Indexing Namespace / Index<T,TKey> Class / FindSingle Method
The key value to search for.

In This Topic
    FindSingle Method
    In This Topic
    Finds the only item with the specified key value and throws an exception if there is not exactly one item with that key value.
    Syntax
    'Declaration
     
    Public Overridable Function FindSingle( _
       ByVal key As TKey _
    ) As T
    public virtual T FindSingle( 
       TKey key
    )

    Parameters

    key
    The key value to search for.

    Return Value

    The item of the collection that contains the specified key value, if found.
    See Also